SeslSwitchBar

SeslSwitchBar is a view that provides a standard switch control similar to SwitchCompat but a more prominent one. This displays "On" or "Off" text depending on its state This view also allows to show SeslProgressBar within itself to indicate ongoing operations.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, @Nullable attrs: AttributeSet)
constructor(context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Types

Link copied to clipboard

Functions

Link copied to clipboard
Add a listener for switch changes
Link copied to clipboard
Returns the switch child view.
Link copied to clipboard
open fun hide()
Link copied to clipboard
open fun isChecked(): Boolean
Link copied to clipboard
open fun isShowing(): Boolean
Link copied to clipboard
open fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
open fun setChecked(checked: Boolean)
Link copied to clipboard
open fun setCheckedInternal(checked: Boolean)
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Link copied to clipboard
open fun setProgressBarVisible(visible: Boolean)
Set the visibility of the progress bar.
Link copied to clipboard
open fun setSessionDescription(sessionDescription: String)
Set the session description for accessibility.
Link copied to clipboard
open fun setSwitchBarText(onTextId: Int, offTextId: Int)
Set the text to display when the switch is in the on or off state.
Link copied to clipboard
open fun show()
Link copied to clipboard
Updates the horizontal margins of the text view and switch.